package cn.com.guage.dtm.huawei;

import java.util.Scanner;

public class HJ13_句子逆序 {

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        // 注意 hasNext 和 hasNextLine 的区别
        String line = in.nextLine();
        String[] array = line.split(" ");
        for(int i=array.length-1;i>=0;i--){
            if(i==0){
                System.out.print(array[i]);
            }else{
                System.out.print(array[i]+" ");
            }
        }
    }
}
